package me.luger.project.fof.entity.ext;

import java.util.List;

/**
 * Created by luger on 2017/3/25.
 */
public class TaskParams {

    /**
     * productTypeId : 2
     * risk : 5
     * fund : 2
     * modelId : 1
     * modelParams : [{"value":"1"},{"value":"2"}]
     * upDownParams : [{"id":"3","up":"100","down":"0"},{"id":"4","up":"100","down":"0"},{"id":"6","up":"100","down":"0"}]
     * benchmarkParams : [{"id":null},{"id":null},{"id":null}]
     * viewpointParam : []
     * weightParam : []
     */

    private String productTypeId;
    private String risk;
    private String fund;
    private String modelId;
    private Integer calType;
    private List<ModelParamsBean> modelParams;
    private List<UpDownParamsBean> upDownParams;
    private List<BenchmarkParamsBean> benchmarkParams;
    private List<ViewPointParamsBean> viewpointParams;
    private List<?> weightParam;

    public String getProductTypeId() {
        return productTypeId;
    }

    public void setProductTypeId(String productTypeId) {
        this.productTypeId = productTypeId;
    }

    public String getRisk() {
        return risk;
    }

    public void setRisk(String risk) {
        this.risk = risk;
    }

    public String getFund() {
        return fund;
    }

    public void setFund(String fund) {
        this.fund = fund;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public List<ModelParamsBean> getModelParams() {
        return modelParams;
    }

    public void setModelParams(List<ModelParamsBean> modelParams) {
        this.modelParams = modelParams;
    }

    public List<UpDownParamsBean> getUpDownParams() {
        return upDownParams;
    }

    public void setUpDownParams(List<UpDownParamsBean> upDownParams) {
        this.upDownParams = upDownParams;
    }

    public List<BenchmarkParamsBean> getBenchmarkParams() {
        return benchmarkParams;
    }

    public void setBenchmarkParams(List<BenchmarkParamsBean> benchmarkParams) {
        this.benchmarkParams = benchmarkParams;
    }

    public List<ViewPointParamsBean> getViewpointParams() {
        return viewpointParams;
    }

    public void setViewpointParams(List<ViewPointParamsBean> viewpointParams) {
        this.viewpointParams = viewpointParams;
    }

    public List<?> getWeightParam() {
        return weightParam;
    }

    public void setWeightParam(List<?> weightParam) {
        this.weightParam = weightParam;
    }

    public Integer getCalType() {
        return calType;
    }

    public void setCalType(Integer calType) {
        this.calType = calType;
    }

    public static class ModelParamsBean {
        /**
         * value : 1
         */

        private String value;

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    public static class UpDownParamsBean {
        /**
         * id : 3
         * up : 100
         * down : 0
         */

        private String id;
        private String up;
        private String down;
        private String name;
        private Integer assetStrategyId;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUp() {
            return up;
        }

        public void setUp(String up) {
            this.up = up;
        }

        public String getDown() {
            return down;
        }

        public void setDown(String down) {
            this.down = down;
        }

        public Integer getAssetStrategyId() {
            return assetStrategyId;
        }

        public void setAssetStrategyId(Integer assetStrategyId) {
            this.assetStrategyId = assetStrategyId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class BenchmarkParamsBean {
        /**
         * id : null
         */

        private Integer id;
        private String name;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class ViewPointParamsBean{
        private Double viewpoint;
        private Double confidence;

        public Double getViewpoint() {
            return viewpoint;
        }

        public void setViewpoint(Double viewpoint) {
            this.viewpoint = viewpoint;
        }

        public Double getConfidence() {
            return confidence;
        }

        public void setConfidence(Double confidence) {
            this.confidence = confidence;
        }
    }
}
